package com.gzsxy.esjy.service.base.dto.response;

import com.gzsxy.esjy.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 商品分类
 * @date 2021/12/31 13:55
 */
@Data
@ApiModel
public class CategoryRsp extends BaseEntity implements TreeNode<String,CategoryRsp> {


    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "类型名称")
    private String categoryName;

    @ApiModelProperty(value = "分类父ID")
    private String parentId;

    @ApiModelProperty(value = "分类层级 0: 顶级 1:二级 2:三级")
    private Integer categoryLevel;

    @ApiModelProperty(value = "图标")
    private String categoryIcon;


    @ApiModelProperty(value = "排序id")
    private Integer orderId;

    @ApiModelProperty(value = "是否禁用（0否1是）")
    private Boolean isDisabled;

    @ApiModelProperty(value = "二级目录")
    private List<CategoryRsp> children = new ArrayList<>();   //二级目录

}
